<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>网站信息</title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <link rel="stylesheet" href="__STATIC__/css/layui.css">
    <script src="__STATIC__/layui.js"></script>
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 个人信息</strong>&emsp;<a
            style="color: #3a4bfb;font-weight: bold " href="javascript:history.go(-1)">返回上一步</a></div>
    <div class="body-content">
        <form class="layui-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">姓名：</label>
                    <div class="layui-input-block">
                        <input value="{$list.id}" type="hidden" name="id">
                        <input name="ch_name" disabled="disabled" lay-verify="required" autocomplete="off"
                               placeholder="请输入姓名" value="{$list.ch_name}" class="layui-input" type="text">
                    </div>
                </div>
                <div style="margin-left: 3.5%" class="layui-inline">
                    <label class="layui-form-label">姓名拼音：</label>
                    <div style="margin-top: 10px;margin-left: 35%" class="layui-input-block">
                        <input name="en_name" disabled="disabled" lay-verify="required|pinyin" autocomplete="off"
                               value="{$list.en_name}" placeholder="请输入姓名拼音" class="layui-input" type="text">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">角色：</label>
                <div class="layui-input-block">
                    {volist name="role" id="rol"}
                    {if condition="$rol.state eq 1"}
                    <input disabled="disabled" type="checkbox" checked="checked" title="{$rol.role}" name="{$rol.id}">
                    {else /}
                    <input disabled="disabled" type="checkbox" title="{$rol.role}" name="{$rol.id}">
                    {/if}
                    {/volist}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">区域：</label>
                    <div style="margin-left: 30px" class="layui-input-inline">
                        <select disabled="disabled" lay-verify="required" lay-filter="region_id" id="region_id"
                                name="region_id">
                            <option value="{$region.id}">{$region.region}</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">部门：</label>
                    <div id="branch" class="layui-input-inline">
                        <select disabled="disabled" name="branch_id" lay-filter="branch_id" id="branch_id"
                                lay-verify="required">
                            <option value="{$branch.id}">{$branch.branch}</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">职位：</label>
                    <div style="margin-left: 34%" class="layui-input-block">
                        {if condition="$list.position eq null"}
                        <input type="text" placeholder="要担任的职位" lay-verify="required" class="layui-input"
                               value="{$list.position}" name="position"/>
                        {else /}
                        <input disabled="disabled" type="text" placeholder="要担任的职位" lay-verify="required"
                               class="layui-input" value="{$list.position}" name="position"/>
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">email：</label>
                    <div style="margin-left: 30px" class="layui-input-inline">
                        <input disabled="disabled" name="email" placeholder="请输入你的邮箱" value="{$list.email}"
                               lay-verify="required|email" autocomplete="off" placeholder="" class="layui-input"
                               type="text">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">手机号:</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        {if condition="$list.tel eq null"}
                        <input name="tel" placeholder="请输入手机号" value="{$list.tel}" lay-verify="phone" autocomplete="off"
                               class="layui-input" type="tel">
                        {else /}
                        <input name="tel" disabled="disabled" placeholder="请输入手机号" value="{$list.tel}"
                               lay-verify="phone" autocomplete="off" class="layui-input" type="tel">
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">家庭电话：</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        {if condition="$list.tel eq null"}
                        <input name="home_tel" placeholder="请输入家庭电话" value="{$list.home_tel}" lay-verify="number"
                               autocomplete="off" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="home_tel" placeholder="请输入家庭电话" value="{$list.home_tel}"
                               lay-verify="number" autocomplete="off" class="layui-input" type="text">
                        {/if}

                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">验证身份证：</label>
                <div class="layui-input-block">
                    {if condition="$list.identity_card eq null"}
                    <input name="identity_card" value="{$list.identity_card}" placeholder="请输入验证身份证号"
                           lay-verify="identity" autocomplete="off" class="layui-input" type="text">
                    {else /}
                    <input disabled="disabled" name="identity_card" value="{$list.identity_card}"
                           placeholder="请输入验证身份证号" lay-verify="identity" autocomplete="off" class="layui-input"
                           type="text">
                    {/if}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">密码：</label>
                    <div style="margin-left: 30px" ; class="layui-input-inline">
                        <input disabled="disabled" type="password" value="{$list.password}" placeholder="请输入密码"
                               autocomplete="off" class="layui-input" name="password"/>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">出生日期：</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        {if condition="$list.borndata eq null"}
                        <input name="borndata" value="{$list.borndata}" id="borndata" lay-verify="date"
                               placeholder="yyyy-MM-dd" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="borndata" value="{$list.borndata}" id="borndata"
                               lay-verify="date" placeholder="yyyy-MM-dd" class="layui-input" type="text">
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">性别：</label>
                    <div class="layui-input-inline">
                        {if condition="$list.sex eq null"}
                        <select name="sex" lay-search="">
                            <option selected="selected" value="0">请选择性别</option>
                            <option value="1">男</option>
                            <option value="2">女</option>
                        </select>
                        {else /}
                        <select disabled="disabled" name="sex">
                            {if condition="$list.sex eq 1"}
                            <option value="0">请选择性别</option>
                            <option selected="selected" value="1">男</option>
                            <option value="2">女</option>
                            {elseif condition="$list.sex eq 2"/}
                            <option value="0">请选择性别</option>
                            <option value="1">男</option>
                            <option selected="selected" value="2">女</option>
                            {else /}
                            <option selected="selected" value="0">请选择性别</option>
                            <option value="1">男</option>
                            <option value="2">女</option>
                            {/if}
                        </select>
                        {/if}

                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">出生地：</label>
                <div class="layui-input-block">
                    {if condition="$list.born eq null"}
                    <input name="born" lay-verify="title" value="{$list.born}" autocomplete="off" placeholder="请输入出生地"
                           class="layui-input" type="text">
                    {else /}
                    <input disabled="disabled" name="born" lay-verify="title" value="{$list.born}" autocomplete="off"
                           placeholder="请输入出生地" class="layui-input" type="text">
                    {/if}
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">户籍地址：</label>
                <div class="layui-input-block">
                    {if condition="$list.place_adress eq null"}
                    <input name="place_adress" value="{$list.place_adress}" lay-verify="title" autocomplete="off"
                           placeholder="请输入户籍地址" class="layui-input" type="text">
                    {else /}
                    <input disabled="disabled" name="place_adress" value="{$list.place_adress}" lay-verify="title"
                           autocomplete="off" placeholder="请输入户籍地址" class="layui-input" type="text">
                    {/if}
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">通讯地址：</label>
                <div class="layui-input-block">
                    {if condition="$list.adress eq null"}
                    <input name="adress" value="{$list.adress}" lay-verify="title" autocomplete="off"
                           placeholder="请输入通讯地址" class="layui-input" type="text">
                    {else /}
                    <input disabled="disabled" name="adress" value="{$list.adress}" lay-verify="title"
                           autocomplete="off" placeholder="请输入通讯地址" class="layui-input" type="text">
                    {/if}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">户籍邮政编码：</label>
                    <div style="margin-top: 10px" class="layui-input-block">
                        {if condition="$list.place_zip_code eq null"}
                        <input name="place_zip_code" value="{$list.place_zip_code}" lay-verify="title"
                               autocomplete="off" placeholder="请输入户籍邮政编码" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="place_zip_code" value="{$list.place_zip_code}"
                               lay-verify="title" autocomplete="off" placeholder="请输入户籍邮政编码" class="layui-input"
                               type="text">
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">通讯邮政编码：</label>
                    <div style="margin-top: 10px;margin-left: 34%" class="layui-input-block">
                        {if condition="$list.zip_code eq null"}
                        <input name="zip_code" value="{$list.zip_code}" lay-verify="title" autocomplete="off"
                               placeholder="请输入通讯邮政编码" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="zip_code" value="{$list.zip_code}" lay-verify="title"
                               autocomplete="off" placeholder="请输入通讯邮政编码" class="layui-input" type="text">
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">学历：</label>
                    <div  class="layui-input-block">
                        {if condition="$list.education eq null"}
                        <input name="education" value="{$list.education}" placeholder="请填写你的学历" lay-verify="title"
                               autocomplete="off" placeholder="" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="education" value="{$list.education}" placeholder="请填写你的学历"
                               lay-verify="title" autocomplete="off" placeholder="" class="layui-input" type="text">
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">政治面貌：</label>
                    <div style="margin-top: 10px;margin-left: 34%" class="layui-input-block">
                        {if condition="$list.political_status eq null"}
                        <input name="political_status" value="{$list.political_status}" placeholder="请填写你的政治面貌"
                               lay-verify="title" autocomplete="off" placeholder="" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="political_status" value="{$list.political_status}"
                               placeholder="请填写你的政治面貌" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" type="text">
                        {/if}
                    </div>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">紧急联系人：</label>
                    <div class="layui-input-block">
                        {if condition="$list.exi_people eq null"}
                        <input name="exi_people" value="{$list.exi_people}" lay-verify="title" autocomplete="off"
                               placeholder="请填写你的紧急联系人" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="exi_people" value="{$list.exi_people}" lay-verify="title"
                               autocomplete="off" placeholder="请填写你的紧急联系人" class="layui-input" type="text">
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">紧急联系人电话：</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        {if condition="$list.exi_tel eq null"}
                        <input name="exi_tel" value="{$list.exi_tel}" placeholder="请填写你的紧急联系人电话" lay-verify="numbers"
                               autocomplete="off" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="exi_tel" value="{$list.exi_tel}" placeholder="请填写你的紧急联系人电话"
                               lay-verify="numbers" autocomplete="off" class="layui-input" type="text">
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">与紧急联系人的关系：</label>
                <div class="layui-input-block">
                    {if condition="$list.relative eq null"}
                    <textarea placeholder="请填写本人与紧急联系人的关系" class="layui-textarea"
                              name="relative">{$list.relative}</textarea>
                    {else /}
                    <textarea disabled="disabled" placeholder="请填写本人与紧急联系人的关系" class="layui-textarea" name="relative">{$list.relative}</textarea>
                    {/if}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">健康状况：</label>
                    <div style="margin-top: 10px" class="layui-input-block">
                        {if condition="$list.condition eq null"}
                        <input type="text" value="{$list.condition}" lay-verify="title" placeholder="请填写你的健康状况"
                               class="layui-input" name="condition"/>
                        {else /}
                        <input disabled="disabled" type="text" value="{$list.condition}" lay-verify="title"
                               placeholder="请填写你的健康状况" class="layui-input" name="condition"/>
                        {/if}
                    </div>
                </div>
                <div style="margin-left: 4%" class="layui-inline">
                    <label class="layui-form-label">既往病史：</label>
                    <div style="margin-top: 10px; margin-left: 34%" class="layui-input-block">
                        {if condition="$list.anamnesis eq null"}
                        <input type="text" lay-verify="title" placeholder="请填写你的既往病史" class="layui-input"
                               value="{$list.anamnesis}" name="anamnesis"/>
                        {else /}
                        <input disabled="disabled" type="text" lay-verify="title" placeholder="请填写你的既往病史"
                               class="layui-input" value="{$list.anamnesis}" name="anamnesis"/>
                        {/if}
                    </div>
                </div>
                <div style="margin-left: 3.5%" class="layui-inline">
                    <label class="layui-form-label">婚育情况：</label>
                    <div style="margin-top: 10px;margin-left: 34%" class="layui-input-block">
                        {if condition="$list.status eq null"}
                        <input type="text" placeholder="请填写你的婚育情况" lay-verify="title" class="layui-input"
                               value="{$list.status}" name="status"/>
                        {else /}
                        <input disabled="disabled" type="text" placeholder="请填写你的婚育情况" lay-verify="title"
                               class="layui-input" value="{$list.status}" name="status"/>
                        {/if}
                    </div>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">相关经验：</label>
                    <div style="margin-left: 30px;margin-top: 10px" class="layui-input-inline">
                        {if condition="$list.experience eq null"}
                        <select name="experience">
                            <option selected="selected" value="0">请选择是否有经验</option>
                            <option value="1">有</option>
                            <option value="2">无</option>
                        </select>
                        {else /}
                        <select disabled="disabled" name="experience">
                            {if condition="$list.experience eq 1"}
                            <option value="0">请选择是否有经验</option>
                            <option selected="selected" value="1">有</option>
                            <option value="2">无</option>
                            {elseif condition="$list.experience eq 2"/}
                            <option value="0">请选择是否有经验</option>
                            <option value="1">有</option>
                            <option selected="selected" value="2">无</option>
                            {else /}
                            <option selected="selected" value="0">请选择是否有经验</option>
                            <option value="1">有</option>
                            <option value="2">无</option>
                            {/if}
                        </select>
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">入职时间：</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        {if condition="$list.entry_time eq null"}
                        <input name="entry_time" value="{$list.entry_time}" id="entry_time" lay-verify="date"
                               placeholder="yyyy-MM-dd" class="layui-input" type="text">
                        {else /}
                        <input disabled="disabled" name="entry_time" value="{$list.entry_time}" id="entry_time"
                               lay-verify="date" placeholder="yyyy-MM-dd" class="layui-input" type="text">
                        {/if}
                    </div>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">原社保缴纳至：</label>
                    <div style="margin-top: 15px;margin-left: 30px" class="layui-input-inline">
                        {if condition="$list.old_firm eq null"}
                        <select name="old_firm">
                            {volist name="month" id="mo"}
                            <option value="{$mo.id}">{$mo.month}</option>
                            {/volist}
                        </select>
                        {else /}
                        <select disabled="disabled" name="old_firm">
                            {volist name="month" id="mo"}
                            {if condition="$list.old_firm eq $mo.id"}
                            <option selected="selected" value="{$mo.id}">{$mo.month}</option>
                            {else /}
                            <option value="{$mo.id}">{$mo.month}</option>
                            {/if}
                            {/volist}
                        </select>
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label style="padding-top: 1px" class="layui-form-label">是否开户：</label>
                    <div  class="layui-input-inline">
                        {if condition="$list.need eq null"}
                        <select name="need">
                            <option selected="selected" value="0">请选择是否开新户</option>
                            <option value="1">需要</option>
                            <option value="2">不需要</option>
                        </select>
                        {else /}
                        <select disabled="disabled" name="need">
                            {if condition="$list.need eq 1"}
                            <option selected="selected" value="1">需要</option>
                            {else /}
                            <option selected="selected" value="2">不需要</option>
                            {/if}
                        </select>
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label style="padding-top: 1px" class="layui-form-label">公积金账号：</label>
                    <div style="margin-left: 34%;" class="layui-input-block">
                        {if condition="$list.account_number eq null"}
                        <input type="text" lay-verify="title" placeholder="请输入公积金账号" class="layui-input"
                               value="{$list.account_number}" name="account_number">
                        {else /}
                        <input disabled="disabled" type="text" lay-verify="title" placeholder="请输入公积金账号"
                               class="layui-input" value="{$list.account_number}" name="account_number">
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">有无熟人在公司：</label>
                    <div style="margin-left: 30px;margin-top: 20px" class="layui-input-inline">
                        {if condition="$list.friend eq null"}
                        <select name="friend">
                            <option selected="selected" value="0">请选择有无熟人在公司</option>
                            <option value="1">有</option>
                            <option value="2">无</option>
                        </select>
                        {else /}
                        <select disabled="disabled" name="friend">
                            {if condition="$list.need eq 1"}
                            <option selected="selected" value="1">有</option>
                            {else /}
                            <option selected="selected" value="2">无</option>
                            {/if}
                        </select>
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">姓名：</label>
                    <div class="layui-input-block">
                        {if condition="$list.friend_name eq null"}
                        <input lay-verify="title" placeholder="请输入他的名字" class="layui-input" value="{$list.friend_name}"
                               name="friend_name" type="text">
                        {else /}
                        <input disabled="disabled" lay-verify="title" placeholder="请输入他的名字" class="layui-input"
                               value="{$list.friend_name}" name="friend_name" type="text">
                        {/if}
                    </div>
                </div>
                <div style="margin-left: 4%" class="layui-inline">
                    <label class="layui-form-label">所在部门：</label>
                    <div style="margin-top: 10px;margin-left: 35%" class="layui-input-block">
                        {if condition="$list.friend_branch eq null"}
                        <input lay-verify="title" placeholder="请输入他所在部门" class="layui-input"
                               value="{$list.friend_branch}" name="friend_branch" type="text">
                        {else /}
                        <input disabled="disabled" lay-verify="title" placeholder="请输入他所在部门" class="layui-input"
                               value="{$list.friend_branch}" name="friend_branch" type="text">
                        {/if}
                    </div>
                </div>
                <div style="margin-left: 4%" class="layui-inline">
                    <label class="layui-form-label">职位：</label>
                    <div style="margin-left: 34%;" class="layui-input-block">
                        {if condition="$list.friend_position eq null"}
                        <input lay-verify="title" placeholder="请输入他所担任职位" class="layui-input"
                               value="{$list.friend_position}" name="friend_position" type="text">
                        {else /}
                        <input disabled="disabled" lay-verify="title" placeholder="请输入他所担任职位" class="layui-input"
                               value="{$list.friend_position}" name="friend_position" type="text">
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">详述你们的关系：</label>
                <div class="layui-input-block">
                    {if condition="$list.friend_relation eq null"}
                    <textarea placeholder="请输入内容" class="layui-textarea"
                              name="friend_relation">{$list.friend_relation}</textarea>
                    {else /}
                    <textarea disabled="disabled" placeholder="请输入内容" class="layui-textarea" name="friend_relation">{$list.friend_relation}</textarea>
                    {/if}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button name="submit" value="submit" class="layui-btn" lay-submit="" lay-filter="demo">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
<script type="text/javascript" src="__JS__/showdate.js"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate;
        //三级联动
        /* var proid=0;
         $.getJSON("{:url('Base/liandong_a')}",function (data_a) {
         //console.log(data.datalist);
         $.each(data_a.datalist,function (i,item) {
         if (i==0){
         proid = item.id;
         }
         $('#region_id').append('<option value='+item.id+'>'+item.region+'</option>');
         });
         $.getJSON("{:url('Base/liandong_b')}?region_id="+proid,function (data_b) {
         $.each(data_b.datalist,function (i,item) {
         $('#branch_id').append('<option value='+item.id+'>'+item.branch+'</option>')
         });
         form.render('select');
         })
         });
         form.on('select(region_id)',function (data_aa) {
         var region_ids=data_aa.value;
         $('#branch_id').html('');
         $.getJSON("{:url('Base/liandong_b')}?region_id="+region_ids,function (data_bb) {
         $.each(data_bb.datalist, function (i, item) {
         $('#branch_id').append('<option  value=' + item.id + '>' + item.branch + "</option>");
         });
         form.render('select');
         })
         });*/
        //日期entry_time
        laydate.render({
         elem: '#borndata'
         });
         laydate.render({
         elem: '#entry_time'
         });
         //监听自定义验证
         form.verify({
         number: [/^([0-9]{3,4}-)?[0-9]{7,8}$/, '请输入正确的座机号码']
         ,numbers:[/^([0-9]{3,4}-)?[0-9]{7,8}|^1\d{10}$/, '请输入正确的座机号码或手机号']
         ,pinyin:[/^[A-Za-z]*$/,'请输入拼音']
         });
        //监听提交
         form.on('submit(demo)', function(data_d){
         // console.log(JSON.stringify(data.field));
         /*layer.alert(JSON.stringify(data.field), {
         title: '最终的提交信息'
         });*/
         var datas=JSON.stringify(data_d.field);
         //console.log(datas);
         var submit='submit';
         $.ajax({
         type: "post",
         url:"{:url('Staffsaves/newstaff')}",
         data:{'data':datas,'submit':submit},
         dataType:"json",
         success: function (res) {
             //console.log(res);
         if (res == 1){
         layer.msg('添加成功');
         window.setTimeout("window.location=\"{:url('Stafflist/index')}\"",2000);
         //window.location.href="{:url('Stafflist/admin')}"
         }else {
         if (res == 2){
         layer.msg('提示：中文或英文用户名已被使用');
         }else {
         layer.msg('提示：用户添加失败');
         }
         }
         }
         });

         /* layer.alert(JSON.stringify(data.field), {
         title: '最终的提交信息'
         });*/
         return false;
         });

    })
</script>
</html>